# -*- coding: utf-8 -*-
from django.contrib import admin
from models import Testamento, Livro, Versao, Capitulo, Versiculo

class VersiculoInline(admin.StackedInline):
    model = Versiculo

class CapituloInline(admin.StackedInline):
    model = Capitulo

class CapituloAdmin(admin.ModelAdmin):
    inlines = [VersiculoInline]

class LivroAdmin(admin.ModelAdmin):
    pass

class VersiculoAdmin(admin.ModelAdmin):
    list_display = ['capitulo', 'numerocapitulo', 'versiculo', 'versao']

admin.site.register(Testamento)
admin.site.register(Versao)
admin.site.register(Livro, LivroAdmin)
admin.site.register(Capitulo, CapituloAdmin)
admin.site.register(Versiculo, VersiculoAdmin)